From: Uwe Kleine-König Date: Thu, 24 Jul 2014 07:31:54 +0000 (+0200) Subject: net/iodine: make address config optional X-Git-Tag: v14.07~78^2 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=a66f9e88547457b78d1af07d62d4b29dce77e25f;p=feed%2Fpackages.git net/iodine: make address config optional In the absense of an address entry bind to all interfaces which is also iodined's default when -l isn't given. Signed-off-by: Uwe Kleine-König --- diff --git a/net/iodine/files/iodined.init b/net/iodine/files/iodined.init index 89f1825f16..48dea619dc 100644 --- a/net/iodine/files/iodined.init +++ b/net/iodine/files/iodined.init @@ -11,6 +11,7 @@ start_instance () { config_get tld "$section" 'tld' config_get port "$section" 'port' + test -n "$address" || address='0.0.0.0' test -n "$port" || port='53' service_start /usr/sbin/iodined -l "$address" -P "$password" -p "$port" "$tunnelip" "$tld"